package com.cskaoyan.javase.oop3._2inner._2static._2classload;

/**
 * 静态内部类和外围类类加载的关系
 * 没有关系,互相不会影响
 *
 * @since 17:17
 * @author wuguidong@cskaoyan.onaliyun.com
 */
public class Demo {
    public static void main(String[] args) {
        EnclosedClazz.NestedClazz nc = new EnclosedClazz.NestedClazz();
    }
}

class EnclosedClazz {
    static {
        System.out.println("EnclosedClazz类类加载!");
    }

    static class NestedClazz {
        static {
            System.out.println("NestedClazz类加载了!");
        }
    }
}